package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.FeedBack;
import com.cskaoyan.bean.ListData;
import com.cskaoyan.service.AdminFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 杨杰
 * @version V1.0
 * @Package com.cskaoyan.controller
 * @date 2020/12/5 21:32
 * @Copyright © 暂时还没有
 */
@RestController
@RequestMapping("admin/feedback")
public class AdminFeedbackController {

    @Autowired
    AdminFeedbackService adminFeedbackService;

    @RequestMapping("list")
    public BaseRespVo adminFeedbackList
            (Integer page, Integer limit, String sort, String order,String username,Integer id){

        ListData<FeedBack> listData = adminFeedbackService.adminFeedbackList(page,limit,sort,order,username,id);
        return BaseRespVo.ok(listData);
    }
}
